package com.itheima.mpermission.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "tb_permission")
public class Permission {
    @Id
    @KeySql(useGeneratedKeys=true)
    private Long id;
    private String childrenName;
    private String childrenPath;
    private Long parentId;
    private String parentName;
    private String parentPath;
    private Boolean isParent;
}
